package com.example.fangkb;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class ActivityB extends Activity {
    private Button btnStartC;
    private final String TAG ="ActivityB";


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_b);

        Log.e(TAG, "onCreate" );
        
        btnStartC = findViewById(R.id.btn_start_c);
        btnStartC.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ActivityB.this, ActivityC.class);
                startActivity(intent);
            }
        });
    }
    @Override
         protected void onStart(){
            super.onStart();
        Log.e(TAG, "onCreate" );
         }

         @Override
         protected void onResume(){
               super.onResume();
             Log.e(TAG, "onResume");
         }

         @Override
           protected void onPause(){
              super.onPause();
             Log.e(TAG, "onPause");
         }
         @Override
         protected void onStop(){
             super.onStop();
             Log.e(TAG, "onStop");
         }
         @Override
          protected void onDestroy(){
                 super.onDestroy();
             Log.e(TAG, "onDestroy");

         }
}
